package cn.lili.modules.wallet.mapper;

import cn.lili.modules.member.entity.dos.RechargeFow;
import cn.lili.modules.wallet.entity.dos.Recharge;
import cn.lili.modules.wallet.entity.vo.RechargeVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 预存款充值记录数据处理层
 *
 * @author pikachu
 * @since 2020-02-25 14:10:16
 */
public interface RechargeMapper extends BaseMapper<Recharge> {


    @Select("select a.*,m.nick_name,m.mobile,m.type from li_recharge a left join li_member m on a.member_id=m.id  ${ew.customSqlSegment}")
    IPage<RechargeVO> getRechargeFowPage(IPage<Recharge> page, @Param(Constants.WRAPPER) Wrapper<Recharge> queryWrapper);

}